/**
 * 
 */
package cn.ac.cintcm.dataconverge.util;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import cn.ac.cintcm.dataconverge.researcher.domain.Researcher;

/**
 * @author shl
 *
 */
public class SessionUtil {
   public static Researcher getSessionUser(HttpServletRequest request){ 
	   HttpSession session = request.getSession(false);
	   if(null != session)
		   return (Researcher)session.getAttribute(
					Constants.USER_IN_SESSION);
	   return null;
   }
}
